home *** CD-ROM | disk | FTP | other *** search
/ Sound Fx / Sound Fx.iso / Software / UNZIPED / MPW181-5 / _SETUP.1 / all.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-20  |  2.3 KB  |  80 lines

  1. /*  all.h
  2.  
  3.      Data types used throughout the maplay code. */
  4.  
  5. /*
  6.  *  @(#) all.h 1.6, last edit: 6/17/94 15:40:44
  7.  *  @(#) Copyright (C) 1993, 1994 Tobias Bading (bading@cs.tu-berlin.de)
  8.  *  @(#) Berlin University of Technology
  9.  *
  10.  *  This program is free software; you can redistribute it and/or modify
  11.  *  it under the terms of the GNU General Public License as published by
  12.  *  the Free Software Foundation; either version 2 of the License, or
  13.  *  (at your option) any later version.
  14.  *
  15.  *  This program is distributed in the hope that it will be useful,
  16.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18.  *  GNU General Public License for more details.
  19.  *
  20.  *  You should have received a copy of the GNU General Public License
  21.  *  along with this program; if not, write to the Free Software
  22.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23.  */
  24.  
  25. // 6/26/96: Removed bool type since Windows already has BOOL.
  26.  
  27. #ifndef ALL_H
  28. #define ALL_H
  29.  
  30. #ifdef __WIN32__
  31. #include <wtypes.h>
  32. #endif
  33.  
  34. // real number
  35. typedef float    real;        // float should be enough
  36.  
  37. // Signed & unsigned integers, define SIXTEEN_BIT_COMPILER if the
  38. // default integer size is 16 bits
  39.  
  40. #ifdef SIXTEEN_BIT_COMPILER
  41. typedef long int32;                            // 32 Bit signed integer
  42. typedef unsigned long  uint32;         // 32 Bit unsigned integer
  43. typedef int int16;                       // 16 Bit signed integer
  44. typedef unsigned int    uint16;              // 16 Bit unsigned integer
  45. #else
  46. typedef int int32;                            // 32 Bit signed integer
  47. typedef unsigned uint32;               // 32 Bit unsigned integer
  48. typedef   signed short  int16;          // 16 Bit signed integer
  49. typedef unsigned short uint16;          // 16 Bit unsigned integer
  50. #endif // SIXTEEN_BIT_COMPILER
  51.  
  52. #ifdef ULAW
  53. typedef unsigned char    ulawsample;    // u-law byte
  54. #endif // ULAW
  55.  
  56. // mutex type (only for user seekable or stoppable streams)
  57. #ifdef SEEK_STOP
  58. #ifdef __WIN32__
  59.  
  60. typedef HANDLE _Mutex;
  61. #endif // __WIN32__
  62. #endif // SEEK_STOP
  63.  
  64. // boolean type, WIN32 already has BOOL
  65. #ifndef __WIN32__
  66. #ifndef NObool
  67. typedef bool BOOL;
  68. #else
  69. typedef char BOOL;
  70. #endif // NObool
  71. #ifndef TRUE
  72. #define TRUE  1
  73. #define FALSE 0
  74. #endif // !TRUE
  75. #endif // !__WIN32__
  76.  
  77. enum e_channels { both, left, right, downmix };
  78.  
  79. #endif // ALL_H
  80.